<?php include 'connect/connect.php'; ?>
<?php 
$page='logins';
include_once 'header.php';?>

    
    <?php
    if (isset($_GET['status'])) {
        $status = $_GET['status'];
        if ($status == "wrong") {
            ?>
            <p class="error">Registration was not successful!</p>
            <?php
        } else if ($status == "wrongu") {
            ?>
            <p class="error">Username has already being taken!</p>
            <?php
        } else if ($status == "wrongp") {
            ?>
            <p class="error">Your passwords don't match!</p>
            <?php
        }
    }
    ?>
    <script type="text/javascript">
        jQuery(document).ready(function(){
            jQuery("#signup_form").validationEngine();
        });

    </script>

    	

    <p>If you already have an account <a href="logins.php">Login here</a></p>
    <p>
    <strong>g-Apps</strong> is a free mobile applications development kit aimed at helping you reach a large market by enabling you write only one application for all platforms! 
You can write cross-platform applications in any language. The kit comes with a simple API that cannot take more than ten minutes to learn.
</p>
<p>If you need to write applications for commercial purposes, it is very easy to integrate with M-Pesa. To do you will only write a single
line of code. It is easy, isn't it?
</p>

<p>We provide a downloadable emulator to help you test your applications.</p><br/><br/>
<h3>Create an account for free</h3>
<form method="post" action="signup_action.php" id="signup_form">
        <table>
            <tr><td>username: </td><td><input type="text" class="validate[required] wide" name="username" id="username"/></td>
            <td>Password: </td><td><input type="password" class="validate[required] wide" name="password" id="password" /></td>
            <td>Confirm Password: </td><td><input type="password" class="validate[required] wide" name="confirm_password" id="confirm_password" /></td>
            <td></td><td><input type="submit" value="submit" /></td></tr>
        </table>
    </form>

<br/><br/>
<p>Having an account with us benefits you in a number of ways:
<ol style="color: #000">
    <li>You can ask for help from other developers and admin if yopu happen to have to have trouble while using this application;</li>
    <li>You can distribute your applications to users on just a click of a button;</li>
    <li>If you have applications, you can view reports on their usage</li>
</ol>
</p>
    <?php include_once('footer.php'); ?>